package commons.beans.resume.impl;

import java.util.Date;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import commons.beans.resume.Loggingable;

public class JobSeekers implements Loggingable{
	private static Logger log = Logger.getLogger(JobSeekers.class);
	
	private String id;
	private String uName;
	private String email;
	private Date lLogin;
	private Letter letter;
	
	public JobSeekers() {}

	public JobSeekers(String id, String uName, String email, Date lLogin, Letter letter) {
		super();
		this.id = id;
		this.uName = uName;
		this.email = email;
		this.lLogin = lLogin;
		this.letter = letter;
	}

	@Override
	public String toString() {
		return "JobSeekers [id=" + id + ", uName=" + uName + ", email=" + email + ", lLogin=" + lLogin + ", letter=" + letter + "]";
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getuName() {
		return uName;
	}

	public void setuName(String uName) {
		this.uName = uName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getlLogin() {
		return lLogin;
	}
	
	@Autowired(required = false)
	public void setlLogin(@Qualifier("dTime")Date lLogin) {
		log.debug("Autowired properties: lLogin " + lLogin);
		this.lLogin = lLogin;
	}

	public Letter getLetter() {
		return letter;
	}

	public void setLetter(Letter letter) {
		this.letter = letter;
	}
	
	public Logger getLog() {
		return log;
	}
}
